package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class TransformGroupList {

    private int beginIndex;
    private int endIndex;
    private List<TransformGroup> transformGroupList;

    public TransformGroupList(List<TransformGroup> transformGroupList) {
        this.beginIndex = transformGroupList.get(0).getBeginIndex();
        this.endIndex = transformGroupList.get(transformGroupList.size() - 1).getEndIndex();
        this.transformGroupList = transformGroupList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return transformGroupList.size();
    }

    public TransformGroup get(int index) {
        return transformGroupList.get(index);
    }

}
